\hypertarget{class_request_dispatcher}{}\section{Request\+Dispatcher Class Reference}
\label{class_request_dispatcher}\index{Request\+Dispatcher@{Request\+Dispatcher}}


The \hyperlink{class_request_dispatcher}{Request\+Dispatcher} class can be used to dispatch a requisition to a page.  




{\ttfamily \#include $<$requestdispatcher.\+h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_request_dispatcher_a3251b6940f8b27a889b52617853338a0}\label{class_request_dispatcher_a3251b6940f8b27a889b52617853338a0}} 
\hyperlink{class_request_dispatcher_a3251b6940f8b27a889b52617853338a0}{Request\+Dispatcher} (const Q\+String \&file)
\begin{DoxyCompactList}\small\item\em This constructor receives a file name. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_request_dispatcher_a1b09805ab31a0f96d9823a2bf9de3771}\label{class_request_dispatcher_a1b09805ab31a0f96d9823a2bf9de3771}} 
\hyperlink{class_request_dispatcher_a1b09805ab31a0f96d9823a2bf9de3771}{$\sim$\+Request\+Dispatcher} ()
\begin{DoxyCompactList}\small\item\em Virtual destructor. \end{DoxyCompactList}\item 
void \hyperlink{class_request_dispatcher_a6416fc9441670d1de84b3c8262d13220}{forward} (C\+W\+F\+::\+Request \&request, C\+W\+F\+::\+Response \&response)
\begin{DoxyCompactList}\small\item\em This method will dispatch the page file specificated in path to the \hyperlink{class_c_s_t_l_compiler}{C\+S\+T\+L\+Compiler}, the \hyperlink{class_c_s_t_l_compiler}{C\+S\+T\+L\+Compiler} will compile the xhtml file and returns the result. After this, the \hyperlink{class_request_dispatcher}{Request\+Dispatcher} will take the return and write it on the response. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \hyperlink{class_request_dispatcher}{Request\+Dispatcher} class can be used to dispatch a requisition to a page. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_request_dispatcher_a6416fc9441670d1de84b3c8262d13220}\label{class_request_dispatcher_a6416fc9441670d1de84b3c8262d13220}} 
\index{Request\+Dispatcher@{Request\+Dispatcher}!forward@{forward}}
\index{forward@{forward}!Request\+Dispatcher@{Request\+Dispatcher}}
\subsubsection{\texorpdfstring{forward()}{forward()}}
{\footnotesize\ttfamily C\+W\+F\+\_\+\+B\+E\+G\+I\+N\+\_\+\+N\+A\+M\+E\+S\+P\+A\+CE void Request\+Dispatcher\+::forward (\begin{DoxyParamCaption}\item[{C\+W\+F\+::\+Request \&}]{request,  }\item[{C\+W\+F\+::\+Response \&}]{response }\end{DoxyParamCaption})}



This method will dispatch the page file specificated in path to the \hyperlink{class_c_s_t_l_compiler}{C\+S\+T\+L\+Compiler}, the \hyperlink{class_c_s_t_l_compiler}{C\+S\+T\+L\+Compiler} will compile the xhtml file and returns the result. After this, the \hyperlink{class_request_dispatcher}{Request\+Dispatcher} will take the return and write it on the response. 


\begin{DoxyParams}{Parameters}
{\em C\+W\+F\+::\+Request} & \&request \+: Used to process the response. \\
\hline
{\em C\+W\+F\+::\+Response} & \&response \+: Used to response. \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
/home/herik/\+C\+P\+P\+Web\+Framework/\+C\+P\+P\+Web\+Framework/cwf/requestdispatcher.\+h\item 
/home/herik/\+C\+P\+P\+Web\+Framework/\+C\+P\+P\+Web\+Framework/cwf/requestdispatcher.\+cpp\end{DoxyCompactItemize}
